package chapter_7;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test5 {
    public static void main(String[] args) throws IOException {
//        File file = new File("D:\\byte.txt");
        FileOutputStream fos = new FileOutputStream("D:\\byte.txt",true);
        fos.write("\r\n".getBytes());
        String str = "JAVA是世界上最好的语言";
        fos.write(str.getBytes());
        fos.close();
    }
}
